import junit.framework.TestCase;


public class TST04 extends TestCase {
	
	
	public void testLibelle() {

		String LibelleVide="";
		String LibelleValide;
		Article c = new Article();
		LibelleValide=c.getLibelle();
		c.setLibelle(LibelleVide);
		assertEquals("Libelle vide",LibelleValide,c.getLibelle() );
	}
		
		public void testSetPrixUnitaire() {
			double pu = 3.14;
			Article a = new Article();
			a.setPu(pu);
			assertEquals("Prix invalide", pu, a.getPu());
		}

		public void testPUnegatif(){
			double pu = -3.14;
			Article a = new Article();
			double oldPu = a.getPu();
			a.setPu(pu);
			assertEquals("Prix invalide", oldPu, a.getPu());
		}

}
